package model

import "time"

type DataCenter struct {
	DataCenterId   int64  `gorm:"column:data_center_id"`
	DataCenterName string `gorm:"column:data_center_name"`
	RegionId       int64  `gorm:"column:region_id"`
}

func (DataCenter) TableName() string {
	return "data_center"
}

type SupplierInfo struct {
	Id               string     `gorm:"column:id;primary_key"`
	IsRegistered     bool       `gorm:"column:is_registered"`
	Address          string     `gorm:"column:address"`
	DatacenterName   string     `gorm:"column:datacenter_name"`
	Name             string     `gorm:"column:name"`
	CreatedAt        time.Time  `gorm:"column:create_at;not null;default:CURRENT_TIMESTAMP"`
	RegistrationTime *time.Time `gorm:"column:registration_time"`
}

func (SupplierInfo) TableName() string {
	return "supplier_info"
}
